package com.czk.model.adaptor.classAdaptorPra;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/6/11 23:06
 */
public class WaterPipAdaptor extends BigWaterPip implements SmallWaterPip {
    @Override
    public int output() {
        // 得到原来的排量
        int input = super.input();
        // 逻辑处理得到小排量
        int smallDisplacement=input/10;
        System.out.println("适配小排量的后的排量为 "+smallDisplacement);
        return smallDisplacement;
    }
}
